package com.codegeek.project.slope.domain;

import com.codegeek.common.utils.ReplaceIllegalChar;
import com.codegeek.framework.aspectj.lang.annotation.Excel;
import com.codegeek.framework.web.domain.BaseEntity;
import com.codegeek.project.mybatisTypeHandler.struct.CGSensorTypeItem;
import com.codegeek.project.mybatisTypeHandler.struct.CGSensorTypeParam;
import lombok.Data;

import java.util.List;

/**
 * 传感器类型对象 slope_sensor_type
 *
 * @author codegeek
 * @date 2020-02-20
 */
@Data
public class SlopeSensorType extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Excel(name = "ID")
    private Integer sensorTypeId;

    /**
     * 类型名称
     */
    @Excel(name = "类型名称")
    private String typeName;

    /**
     * 类型项
     */
    @Excel(name = "类型项")
    private List<CGSensorTypeItem> typeItems;

    /**
     * 类型参数
     */
    @Excel(name = "类型参数")
    private List<CGSensorTypeParam> typeParams;

    public void setTypeName(String typeName) {
        this.typeName = new ReplaceIllegalChar().replace(typeName);
    }
}
